package com.sumainfor.wx.tenant.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.Zfeign.ZpcMktFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 *根据合同编号查询当前合同是否存在续签合同
 * <p>
 *
 * @author: ZC
 * @create: 2019-10-30 18:32
 **/
@Controller
@RequestMapping("/ToRenewPact")
public class ToRenewPactController {

    @Autowired
    ZpcMktFeign zpcMktFeign;

    @ResponseBody
    @GetMapping("/getRenewPact")
    public JsonResult getRenewPact(@RequestParam Map<String,Object> params){
        return zpcMktFeign.getRenewPact(params);
    }
}
